package architect.design.patterns.creation.simplefactory;

/**
 * 无工厂模式
 *
 * @author guanxin
 * @date 2018/5/4 11:14
 */

public class NoFactoryCase {

    public static void main(String[] args) {
        MacBook macBook = new MacBook();
        macBook.switchOn();
    }
}

class MacBook {
    public void switchOn() {
        System.out.println("The MacBook is switched on ...");
    }
}
